package com.sicnu.resources.bean.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ResourceDoc {
    private Integer resourceId;
    private String resourceType;
    private String resourceDescription;
    private Long userId;
    private String resourceName;
    private String coverName;
    private String tag;
    private Boolean isAD;

    public ResourceDoc(Resource resource){
        this.resourceId = resource.getResourceId();
        this.resourceType = resource.getResourceType();
        this.resourceDescription = resource.getResourceDescription();
        this.userId = resource.getUserId();
        this.resourceName = resource.getResourceName();
        this.coverName = resource.getCoverName();
        this.tag = resource.getTag();
    }
}